from django.conf.urls import url
from django.urls import path
from rest_framework import routers
from rest_framework.documentation import include_docs_urls

from .views import UserProfileViewSet, schema_view
# from rest_framework_swagger.views import get_swagger_view

# schema_view = get_swagger_view(title='系统API')

router = routers.DefaultRouter()
router.register(r'user', UserProfileViewSet)

urlpatterns = [
    url(r'^docs/', schema_view),
    # path("user/login", router.)
    # url('getUserInfo/', get_info),
    # url('getUserCount/', get_user_count),
    # url('changePass/', set_user_pass)
    # url('user/', UserProfileViewSet)
]

urlpatterns += router.urls
